package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.admin.dtos.NewsAuthDto;
import com.heima.model.admin.vos.WmNewsVo;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {

    /**
     * 分页查询文章列表
     * @param dto
     * @return
     */
     public List<WmNews> selectWmNewsList(WmNewsPageReqDto dto);


    /**
     * 查询复合的数据
     * @param dto
     * @return
     */
     public int countWmNews(WmNewsPageReqDto dto);


     //TODO 以后写两表查询
     public List<WmNewsVo>  list(NewsAuthDto dto);
}
